mvc select list order by

89

mvc select list order by -

List<Reason> reasonList = _db.Reasons.OrderBy(m=>m.Description).ToList();
ReasonList = new SelectList(reasonList, "Id", "Description");

Comments

Submit
0 Comments